package com.gfm.story.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gfm.story.entity.advertisements.Advertisements;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: book
 * @BelongsPackage: com.gfm.book.dao
 * @Author: Administrator
 * @CreateTime: 2019-06-14 14:39
 * @Description: 广告dao
 */
public interface AdvertisementsDao extends BaseMapper<Advertisements> {


    void updateAdverStutas(Advertisements advertisements);

    List<Advertisements> getAdvertisementsPage(Map<String, Object> map);

    int getAdvertisementsPageCount(Map<String, Object> map);

    Advertisements selectAdverById(@Param("id") Long id);

    void deleteAdverById(@Param("id") Long id);

    void updateAdverFile(Advertisements advertisements);

    void updateAdverInfo(Advertisements advertisements);


    List<Advertisements> selectAdverAllOpen();
}
